package com.hoshino.momochi.service.Impl;

import com.hoshino.momochi.mapper.SensitiveWordMapper;
import com.hoshino.momochi.model.domain.SensitiveWord;
import com.hoshino.momochi.service.SensitiveWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SensitiveWordServiceImpl implements SensitiveWordService {

    @Autowired
    private SensitiveWordMapper sensitiveWordMapper;

    @Override
    public List<String> getAllSensitiveWord() {
        return sensitiveWordMapper.getAllSensitiveWord();
    }

    @Override
    public void addSensitiveWord(SensitiveWord sensitiveWord) {
        sensitiveWordMapper.addSensitiveWord(sensitiveWord);
    }

    @Override
    public void addSensitiveWords(List<String> list) {
        sensitiveWordMapper.addSensitiveWords(list);
    }

    @Override
    public void delSensitiveWord(SensitiveWord sensitiveWord) {
        sensitiveWordMapper.delSensitiveWord(sensitiveWord);
    }

    @Override
    public void delIsDeleteAsTrue() {
        sensitiveWordMapper.delIsDeleteAsTrue();
    }
}
